home *** CD-ROM | disk | FTP | other *** search
- object SyntAnal32: TLibSyntAnalyzer
- Formats = <
- item
- DisplayName = 'Default'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -13
- Font.Name = 'Courier New'
- Font.Style = []
- FormatType = ftCustomFont
- end
- item
- DisplayName = 'Marked block'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clHighlightText
- Font.Height = -13
- Font.Name = 'Courier New'
- Font.Style = []
- BgColor = clHighlight
- FormatType = ftColor
- end
- item
- DisplayName = 'Symbol'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clTeal
- Font.Height = -13
- Font.Name = 'Courier New'
- Font.Style = [fsBold]
- end
- item
- DisplayName = 'Number'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clNavy
- Font.Height = -13
- Font.Name = 'Courier New'
- Font.Style = []
- end
- item
- DisplayName = 'String'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clBlue
- Font.Height = -13
- Font.Name = 'Courier New'
- Font.Style = []
- end
- item
- DisplayName = 'Identifier'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -13
- Font.Name = 'Courier New'
- Font.Style = []
- end
- item
- DisplayName = 'Reserved word'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -13
- Font.Name = 'Courier New'
- Font.Style = [fsBold]
- end
- item
- DisplayName = 'Comment'
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clBlue
- Font.Height = -13
- Font.Name = 'Courier New'
- Font.Style = [fsItalic]
- end>
- TokenRules = <
- item
- DisplayName = 'String'
- StyleName = 'String'
- TokenType = 4
- Expression = '"(\\"|.)*?("|$)'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'Any name'
- StyleName = 'Identifier'
- TokenType = 2
- Expression = '[a-z_]\w*'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'HEX'
- StyleName = 'Number'
- TokenType = 7
- Expression = '0x[\da-f]*'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'Float'
- StyleName = 'Number'
- TokenType = 6
- Expression =
- '#with exp. dot is optional '#13#10'\d+ \.? \d+ e [\+\-]? \d+ |'#13#10'#witho' +
- 'ut exp. dot is required'#13#10'\d+ \. \d+'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'Integer'
- StyleName = 'Number'
- TokenType = 5
- Expression = '\d+'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'Comment 1'
- StyleName = 'Comment'
- TokenType = 1
- Expression = '(?s)/\*.*?(\*/|\Z)'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'Comment 2'
- StyleName = 'Comment'
- TokenType = 1
- Expression = '//.*'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'Comment 3'
- StyleName = 'Comment'
- TokenType = 1
- Expression = '(?s)/\+.*?(\+/|\Z)'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'Symbol'
- StyleName = 'Symbol'
- TokenType = 3
- Expression = '[/\+\-\*:=<>&/\|\^~\.]+'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'Single symbol'
- StyleName = 'Symbol'
- TokenType = 3
- Expression = '[\{\}\(\)\[\],;]'
- ColumnFrom = 0
- ColumnTo = 0
- end
- item
- DisplayName = 'Char'
- StyleName = 'String'
- TokenType = 8
- Expression = #39'.*?('#39'|$)'
- ColumnFrom = 0
- ColumnTo = 0
- end>
- BlockRules = <
- item
- DisplayName = 'Key words'
- StyleName = 'Reserved word'
- BlockType = btTagDetect
- ConditionList = <
- item
- TagList.Strings = (
- '__DATE__'
- '__FILE__'
- '__LINE__'
- '__TIME__'
- '__TIMESTAMP__'
- 'abstract'
- 'alias'
- 'align'
- 'asm'
- 'assert'
- 'auto'
- 'bit'
- 'body'
- 'break'
- 'byte'
- 'case'
- 'cast'
- 'catch'
- 'cdouble'
- 'cent'
- 'cfloat'
- 'char'
- 'class'
- 'const'
- 'continue'
- 'creal'
- 'dchar'
- 'debug'
- 'default'
- 'delegate'
- 'delete'
- 'deprecated'
- 'do'
- 'double'
- 'else'
- 'enum'
- 'export'
- 'extern'
- 'false'
- 'final'
- 'finally'
- 'float'
- 'for'
- 'foreach'
- 'function'
- 'goto'
- 'idouble'
- 'if'
- 'ifloat'
- 'import'
- 'in'
- 'inout'
- 'int'
- 'interface'
- 'invariant'
- 'ireal'
- 'is'
- 'long'
- 'mixin'
- 'module'
- 'new'
- 'null'
- 'out'
- 'override'
- 'package'
- 'pragma'
- 'private'
- 'protected'
- 'public'
- 'real'
- 'return'
- 'short'
- 'sizeof'
- 'static'
- 'struct'
- 'super'
- 'switch'
- 'synchronized'
- 'template'
- 'this'
- 'throw'
- 'true'
- 'try'
- 'typedef'
- 'typeid'
- 'typeof'
- 'ubyte'
- 'ucent'
- 'uint'
- 'ulong'
- 'union'
- 'unittest'
- 'ushort'
- 'version'
- 'void'
- 'volatile'
- 'wchar'
- 'while'
- 'with')
- TokenTypes = 4
- end>
- HighlightPos = cpAny
- IgnoreAsParent = False
- end
- item
- DisplayName = 'End'
- BlockType = btRangeEnd
- ConditionList = <
- item
- TagList.Strings = (
- '}')
- TokenTypes = 8
- end>
- HighlightPos = cpAny
- IgnoreAsParent = False
- end
- item
- DisplayName = 'function begin'
- StrictParent = True
- ConditionList = <
- item
- TagList.Strings = (
- '{')
- TokenTypes = 8
- end
- item
- TagList.Strings = (
- ')')
- TokenTypes = 8
- end
- item
- CondType = tcSkip
- end
- item
- TagList.Strings = (
- '(')
- TokenTypes = 8
- end
- item
- TokenTypes = 4
- end
- item
- TagList.Strings = (
- '::')
- CondType = tcNotEqual
- TokenTypes = 8
- end>
- IdentIndex = -1
- BlockOffset = -1
- BlockEnd = 'function end'
- RefToCondEnd = True
- HighlightPos = cpAny
- IgnoreAsParent = False
- end
- item
- DisplayName = 'function end'
- BlockName = 'function begin'
- StrictParent = True
- BlockType = btRangeEnd
- ConditionList = <
- item
- TagList.Strings = (
- '}')
- TokenTypes = 8
- end>
- HighlightPos = cpAny
- IgnoreAsParent = False
- end
- item
- DisplayName = 'cls func'
- StrictParent = True
- ConditionList = <
- item
- TagList.Strings = (
- '{')
- TokenTypes = 8
- end
- item
- TagList.Strings = (
- ')')
- TokenTypes = 8
- end
- item
- CondType = tcSkip
- end
- item
- TagList.Strings = (
- '(')
- TokenTypes = 8
- end
- item
- TokenTypes = 4
- end
- item
- TagList.Strings = (
- '::')
- TokenTypes = 8
- end>
- BlockOffset = -1
- BlockEnd = 'cls func end'
- NameFmt = '%s-1'
- GroupFmt = '%s1'
- RefToCondEnd = True
- HighlightPos = cpAny
- IgnoreAsParent = False
- end
- item
- DisplayName = 'cls func end'
- BlockName = 'cls func'
- StrictParent = True
- BlockType = btRangeEnd
- ConditionList = <
- item
- TagList.Strings = (
- '}')
- TokenTypes = 8
- end>
- HighlightPos = cpAny
- IgnoreAsParent = False
- end
- item
- DisplayName = 'Begin'
- ConditionList = <
- item
- TagList.Strings = (
- '{')
- TokenTypes = 8
- end>
- IdentIndex = 1
- BlockEnd = 'End'
- DisplayInTree = False
- HighlightPos = cpAny
- DrawStaple = True
- CollapseFmt = '{ ... }'
- IgnoreAsParent = False
- end>
- CodeTemplates = <>
- SubAnalyzers = <>
- SampleText.Strings = (
- '/* Sieve of Eratosthenes prime numbers */'
- ' '
- 'bit[8191] flags;'
- ' '
- 'int main()'
- '{ int i, count, prime, k, iter;'
- ''
- ' printf("10 iterations\n");'
- ' for (iter = 1; iter <= 10; iter++)'
- ' {'#9'count = 0;'
- #9'flags[] = 1;'
- #9'for (i = 0; i < flags.length; i++)'
- #9'{ if (flags[i])'
- #9' {'#9'prime = i + i + 3;'
- #9#9'k = i + prime;'
- #9#9'while (k < flags.length)'
- ' {'
- ' flags[k] = 0;'
- ' k += prime;'
- ' }'
- ' count += 1;'
- ' }'
- ' }'
- ' }'
- ' printf ("\n%d primes", count);'
- ' return 0;'
- '}')
- TokenTypeNames.Strings = (
- 'Unknown'
- 'Comment'
- 'Identifier'
- 'Symbol'
- 'String'
- 'Integer const'
- 'Float const'
- 'Hex const'
- 'Char const')
- MarkedBlockStyle = 'Marked block'
- DefaultStyleName = 'Default'
- Extentions = 'd'
- LexerName = 'DigitalMars D'
- Notes.Strings = (
- 'Author: krzys.mif@op.pl')
- Left = 140
- Top = 160
- end
-